<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <meta name="renderer" content="webkit">
  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <!--<link rel="alternate icon" type="image/png" href="i/favicon.png">-->
  <!--<link rel="apple-touch-icon-precomposed" href="i/app-icon72x72@2x.png">-->
  <meta name="apple-mobile-web-app-title" content="SinXia React"/>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <div id="wx_pic" style="margin: 0 auto; display: none;">
    <img src="//img.alicdn.com/imgextra/i3/1862941194/TB2vLwZouuSBuNjSsziXXbq8pXa_!!1862941194.png">
  </div>
  <title>快帮我破解阳光诅咒，送你一份大礼</title>
  <style>
    body {
      margin: 0;
      position: relative;
      height: 100%;
    }

    #root {
      /*height:100vh;*/
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      position: absolute;
    }

    #root canvas {
      position: absolute;
      top: 0;
      left: 0;
      /*right: 0;*/
      /*bottom: 0;*/
      width: 100%;
      height: 100%;
    }
    #promptBox {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 100;
    }
  </style>
  <script src="./lib-flex.js"></script>
</head>
<body>
<div id="root">
  <div id="promptBox"></div>
</div>

<script>
  var { clientWidth, clientHeight } = document.documentElement;
  var ua = navigator.userAgent.toLowerCase();

  window.CFG = {
    publicPath: '',
    view: {
      width: 750,
      height: clientHeight * (750 / clientWidth),
      isWx: ua.indexOf('micromessenger') !== -1,
    },
    api: {
      logPv: 'http://mo.drplant.com.cn/sinxiagame/api/logPV', // api/logPV
      logUv: 'http://mo.drplant.com.cn/sinxiagame/api/logUV', // api/logUV
      lottery: {
        queryLotteryList: 'http://mo.drplant.com.cn/sinxiagame/api/getAwards',  // api/getAwards
        getLotteryResult: 'http://mo.drplant.com.cn/sinxiagame/api/draw', // post api/draw
        getWinnerDetail: 'http://mo.drplant.com.cn/sinxiagame/api/logOrderInfo',  // post api/logOrderInfo
      },
      share: '',
    },
    shareDatas: {
      title: '快帮我破解阳光诅咒，送你一份大礼！', // 分享标题
      desc: '据说破解诅咒就能与阳光“和平相处”，再也不怕晒黑晒伤啦', // 分享描述
      link: 'http://wechat.drplant.com.cn/Mulberryls/usermodule/MBUM000_allAuthInit?state=1__ACT00025', // 分享链接
      imgUrl: 'http://mo.drplant.com.cn/sinxiagame/game/assets/weChatShare.png', // 分享图标
    }
  };

  if (ua.indexOf('micromessenger') !== -1) {
    var bodyHtml = document.getElementsByTagName('body').item(0);
    var wxScript= document.createElement('script');
    wxScript.src="//res.wx.qq.com/open/js/jweixin-1.2.0.js";
    bodyHtml.appendChild(wxScript);
  }

  document.body.style.height = clientHeight + 'px';
  document.getElementById('root').style.height = clientHeight + 'px';
</script>
</body>
</html>
